<?php
    include_once "Packager/packager.php";
    include_once "Minify/min/lib/JSMin.php";

    $pkg = new Packager(array(dirname(__FILE__)."\\mootools-core\\", dirname(__FILE__)."\\mootools-more\\"));
    $f = fopen("mootools.js", "w");
    //fwrite($f, JSMin::minify($pkg->build_from_files($pkg->get_all_files())));
    fwrite($f, $pkg->build_from_files($pkg->get_all_files()));

?>